package com.adtec.base.cloud.baseservice.rbac.feign;

import com.adtec.base.cloud.commons.exception.AjaxResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient("BASESERVICE-SMS")
@FeignClient(name="baseservice-sms",fallback = SmsServiceFallback.class )
public interface SmsService {

    @PostMapping(value = "/sms/send")
    AjaxResponse send(@RequestParam("phoneNo") String phoneNo,
                      @RequestParam("content") String content);

}
